﻿using System;

namespace SpriteAnimator.Controls
{
    /// <summary>
    /// Argument pour le changement de page
    /// </summary>
    public class ControlPageArgs : EventArgs
    {
        #region Constructeur
        
        /// <summary>
        /// Constructeur de la classe
        /// </summary>
        /// <param name="p_bPageFoward">TRUE active le mode page avant, FALSE sinon</param>
        /// <param name="p_bPageReturn">TRUE active le mode page arrière, FALSE sinon</param>
        public ControlPageArgs(bool p_bPageFoward, bool p_bPageReturn)
            : base()
        {
            this.HavePageFoward = p_bPageFoward;
            this.HavePageReturn = p_bPageReturn;
        }

        #endregion

        #region Indexer

        /// <summary>
        /// Retourne si la page avant est active
        /// </summary>
        public bool HavePageFoward
        {
            get;
            private set;
        }

        /// <summary>
        /// Retourne si la page arrière est active
        /// </summary>
        public bool HavePageReturn
        {
            get;
            private set;
        }

        #endregion
    }
}
